package com.wxzz.elearing.comment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wxzz.elearing.comment.dto.SkillCenterCategoryDto;
import com.wxzz.elearing.comment.entity.SkillCenterCategory;
import com.wxzz.elearning.common.vo.JgPageVo;
import com.wxzz.elearning.common.vo.ReturnVO;

import java.util.List;

/**
 * <p>
 * 技能沉淀/中心分类 服务类
 * </p>
 *
 * @author
 * @since 2021-05-17
 */
public interface ISkillCenterCategoryService extends IService<SkillCenterCategory> {

    /**
     * 展示技能分类(小程序)
     * @param type 1-返回全部 0-不返回全部
     * @return
     */
    ReturnVO<List<SkillCenterCategory>> listAllCategory(Long pid, Long enterpriseId, Integer type);

    /**
     * 新增技能分类(企业)
     * @param skillCenterCategory
     * @return
     */
    ReturnVO saveCategory(SkillCenterCategory skillCenterCategory);

    /**
     * 删除技能分类
     * @param id
     * @return
     */
    ReturnVO deleteCategory(Long id, Long enterpriseId);

    /**
     * 技能分类列表(企业)
     * @param skillCenterCategoryDto
     * @param type 1-返回全部 0-不返回全部
     * @return
     */
    ReturnVO<JgPageVo<List<SkillCenterCategory>>> listCategory(SkillCenterCategoryDto skillCenterCategoryDto, Long enterpriseId, Integer type);


}
